package com.zhentao.feign;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ChargeUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: ChargeUserFeignController
 * @Author: 振涛教育_Q
 * @Date: 2024/12/31 16:09
 */
@RestController
@RequestMapping("/auth/user")
public class ChargeUserFeignController {

    @Autowired
    private ChargeUserService chargeUserService;

    /**
     * @description  统计用户数量  和  用户的活跃度
     * @author 振涛教育_小Q
     * @date    2024/12/31 16:10
      * @param
     * @return com.zhentao.model.common.dtos.ResponseResult
     */
    @GetMapping("/info/count")
    public ResponseResult getUserCount() {
        return chargeUserService.getUserCount();
    }

}
